package org.sbbs.app.security.dao.hibernate;

import java.util.List;

import org.sbbs.app.security.dao.MenuDao;
import org.sbbs.app.security.model.Menu;
import org.sbbs.base.dao.hibernate.BaseTreeDaoHibernate;
import org.springframework.stereotype.Repository;

@Repository("menuDao")
public class MenuDaoHibernate extends BaseTreeDaoHibernate<Menu, Long>
		implements
			MenuDao {

	public MenuDaoHibernate() {
		super(Menu.class);
	}

	@Override
	public void initMenu(List menus) {
		this.getHibernateTemplate().saveOrUpdateAll(menus);

	}
}
